package display {
	import com.adobe.serialization.json.JSON;
	
	import flare.vis.data.NodeSprite;
	import flare.vis.operator.layout.NodeLinkTreeLayout;
	
	import flash.display.Sprite;
	import flash.display.Stage;
	import flash.events.Event;
	import flash.events.KeyboardEvent;
	import flash.geom.Point;
	import flash.ui.Keyboard;
	
	import org.aswing.AsWingManager;
	import org.aswing.Component;
	import org.aswing.Container;
	import org.aswing.JAccordion;
	import org.aswing.JFrame;
	import org.aswing.JList;
	import org.aswing.JScrollPane;
	import org.aswing.ListCell;
	import org.aswing.ListModel;
	import org.aswing.event.AWEvent;
	import org.aswing.event.InteractiveEvent;
	import org.aswing.event.SelectionEvent;
	
	import util.ItemListCellFactory;
	import util.NodeListCellFactory;
	
	public class TopListSprite extends Sprite {
		public var frame:JFrame;
		public var topActiveList:JList;
		public var topFocusedList:JList;
		public var topBuzzList:JList;
		public var topVideoList:JList;
		public var activityDetail:ActivityDetailSprite;
		public function TopListSprite(stage:Stage) {
			super();
			AsWingManager.setRoot(stage);
			frame = new JFrame(null, "Top list");
			frame.setClosable(false);
			frame.setResizable(false);
			frame.setDragable(false);
			
			activityDetail = new ActivityDetailSprite();
			stage.addChild(activityDetail);
			stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp);
			
			var accordion:JAccordion = new JAccordion();
			var pane:Container = frame.getContentPane();
			var scroll:JScrollPane = new JScrollPane();
			topActiveList = new JList(null, new NodeListCellFactory());
			topActiveList.addSelectionListener(onPeopleSelect);
			scroll.setView(topActiveList);
			accordion.appendTab(scroll, "Top Active");
			
			scroll = new JScrollPane();
			topFocusedList = new JList(null, new NodeListCellFactory());
			topFocusedList.addSelectionListener(onPeopleSelect);
			scroll.setView(topFocusedList);
			accordion.appendTab(scroll, "Top Focused");
			
			scroll = new JScrollPane();
			topBuzzList = new JList(null, new ItemListCellFactory());
			
			scroll.setView(topBuzzList);
			accordion.appendTab(scroll, "Top Buzz");
			
			scroll = new JScrollPane();
			topVideoList = new JList(null, new ItemListCellFactory());
			scroll.setView(topVideoList);
			accordion.appendTab(scroll, "Top Video");
			accordion.addStateListener(onSwtichTab);
			
			pane.append(accordion);
			
//			frame.setX(1000);
			frame.setX(0);
//			frame.setY(240);
			frame.setY(410);
			frame.setSizeWH(230, 200);
			frame.show();
			
		}
		public function onSwtichTab(event:Event):void {
			trace(' swtich tab');
			activityDetail.close();
		}
		public function onPeopleSelect(event:SelectionEvent):void {
			
			var l:int = event.getLastIndex();
			var t:JList = event.currentTarget as JList;
			var c:Component = t.getCellByIndex(l).getCellComponent();
			var m:ListModel = t.getModel();
			//            var c:ListCell = t.getCellByIndex(l);
			var data:Object = {};
			var e:Object = m.getElementAt(l);
			trace('onPeopleSelect >' + l + ' ' + JSON.encode(e));
			data.name = e.name;
			data.picture = e.picture;
			data.list = getRandomActivity();
//			data.list.push({type: 'Youtube', picture: 'resources/assets/google_apps_icons/YouTube_icon.png', anchor: 'Milton Glaser: How great design makes ideas new.', url: 'http://www.youtube.com/watch?v=tWmJcR-x_hc'});
//			data.list.push({type: 'Blogger', picture: 'resources/assets/google_apps_icons/blogger_logo.png', anchor: 'Sanchez on Why There is Something Instead of Nothing', url: 'http://scienceblogs.com/evolutionblog/2010/07/sanchez_on_atheism.php'});
			var p:Point = new Point(c.getX(), c.getY());
			var g:Point = t.localToGlobal(p);
			trace('onPeopleSelect >', g.x, g.y);
//			activityDetail.x = g.x - activityDetail.get - 20;
			activityDetail.x = g.x + 230;
			activityDetail.y = g.y;
			activityDetail.update(data);
			activityDetail.show();
		}
		
		public function getRandomActivity():Array {
			var youtube:Array = [
				['Cataclysm Beta - Northshire Abbey ', 'http://www.youtube.com/watch?v=krdXwD1TAvg'],
				['TotalBiscuit vs Battle.net', 'http://www.youtube.com/watch?v=QKLYPSR2y_0'],
				['Cataclysm Beta - Stonetalon Mountains', 'http://www.youtube.com/watch?v=zVDCGU_2f68'],
				['Cataclysm Beta - Gnome (Dwarf)', 'http://www.youtube.com/watch?v=uoNBCKwwHD0'],
				['TotalBiscuit vs Battle.net', 'http://www.youtube.com/watch?v=QKLYPSR2y_0'],
				['Video Games and Storytelling', 'http://www.youtube.com/watch?v=1jdG2LHair0'],
				['Jesmaster - Get Out', 'http://www.youtube.com/watch?v=KbMLphi7HQU'],
				['Cataclysm Beta - Blackrock Caverns', 'http://www.youtube.com/watch?v=eff6O6YVkJg'],
				
				["160 Greatest Arnold Schwarzenegger Quotes",              "http://www.youtube.com/watch?v=-Sgj78QG9Bg"],
				["CINEMA'S TOP HUMAN VILLAINS",                            "http://www.youtube.com/watch?v=CZ6AzzL3Wtg"],
				["GET OUT OF THERE!",                                      "http://www.youtube.com/watch?v=EQCU2d36Kn0"],
				["Heroes Montage",                                         "http://www.youtube.com/watch?v=PSEYXWmEse8"],
				["STAR WARS: Lightsaber Duels Tribute",                    "http://www.youtube.com/watch?v=QQHC2X_udLQ"],
				["THE WIRE - 100 Greatest Quotes (spoilers)",              "http://www.youtube.com/watch?v=TFh2f7rNAEI"],
				["THE WIRE - Other 100 Greatest Quotes (spoilers)",        "http://www.youtube.com/watch?v=V2Kgn6J7SjA"],
				["The 100 Cheesiest Movie Quotes of All Time",             "http://www.youtube.com/watch?v=_W_szJ6M-kM"],
				["The 100 Greatest Movie Insults of All Time",             "http://www.youtube.com/watch?v=mTiAS7cdsYc"],
				["The Other 100 Best Movie Quotes of All Time",            "http://www.youtube.com/watch?v=pDxn0Xfqkgw"],
				["The Other 130 Greatest Arnold Schwarzenegger Quotes",    "http://www.youtube.com/watch?v=y-_ZW2ChGjE"],
				["WALL-E: 'The Cannibal Years' Trailer",                   "http://www.youtube.com/watch?v=ybJWKZB0Erk"],
				
			];
			var buzz:Array = [
				["Speaking-at-todays-quality-meeting-on-Improv-2pm", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/5tgGnSJ2Efk/Speaking-at-todays-quality-meeting-on-Improv-2pm"                          ], 
				["Best-worst-SEO-hack-I-just-figured-out-linkedin", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/7Dc2jxnVW8d/Best-worst-SEO-hack-I-just-figured-out-linkedin"                          ], 
				["Not-happy-to-need-to-clear-all-my-cookies-thanks", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/A1vF5yCELTj/Not-happy-to-need-to-clear-all-my-cookies-thanks"                          ], 
				["http-blog-mediasocialist-com-2010-01-09-how-do", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/AzNXfT4GjNM/http-blog-mediasocialist-com-2010-01-09-how-do"                          ], 
				["I-was-just-asked-if-a-piece-of-code-I-lovingly", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/GtN1wzh2hEg/I-was-just-asked-if-a-piece-of-code-I-lovingly"                          ], 
				["Taco-Bugs-The-Yelp-importer-for-Tacos-appears-to", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/Hes6FSWn8kM/Taco-Bugs-The-Yelp-importer-for-Tacos-appears-to"                          ], 
				["1-photo", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/KuzmzjDfYAC/1-photo"                                             ], 
				["How-can-we-get-a-result-like-http-www-archive-org", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/MU9GzmJYd7N/How-can-we-get-a-result-like-http-www-archive-org"                          ], 
				["is-now-a-customer-of-both-AT-T-and-T-mobile", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/UFnbRXX7DsG/is-now-a-customer-of-both-AT-T-and-T-mobile"                          ], 
				["I-was-out-yesterday-Any-news", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/UcPJ3zSCnxi/I-was-out-yesterday-Any-news"                          ], 
				["Realized-that-today-is-the-8th-anniversary-of-my", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/VWLHKJoo3Bj/Realized-that-today-is-the-8th-anniversary-of-my"                          ], 
				["Taco-Bugs-For-some-reason-my-dad-with-his-public", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/VeomJRYtgJL/Taco-Bugs-For-some-reason-my-dad-with-his-public"                          ], 
				["Anyone-know-why-the-most-common-query-I-saw", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/Wo7pFC6hUHF/Anyone-know-why-the-most-common-query-I-saw"                          ], 
				["Never-saw-a-SxS-this-neutral", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/Wye37QzgsiU/Never-saw-a-SxS-this-neutral"                          ], 
				["Really-interesting-post-by-Rebecca-MacKinnon-that", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/X7QJs2JyAzh/Really-interesting-post-by-Rebecca-MacKinnon-that"                          ], 
				["My-son-needed-a-spelling-in-Hebrew-so-I-went-to", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/Y4vrm9DChUB/My-son-needed-a-spelling-in-Hebrew-so-I-went-to"                          ], 
				["When-youre-used-to-the-quirks-of-one-system-the", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/f4zQtbKwsNj/When-youre-used-to-the-quirks-of-one-system-the"                          ], 
				["Is-anyone-else-seeing-The-group-mailing-list", "http://alpha-demo.focus.corp.google.com/a/google.com/buzz/110898961250461403590/gMjacnh9LsR/Is-anyone-else-seeing-The-group-mailing-list"                          ], 
				["Does-anyone-know-Pete-Warden-who-write-this-piece", "http://alpha-demo.focus.corp.google.com/buzz/a/google.com/110898961250461403590/2w3kfJHLVnB/Does-anyone-know-Pete-Warden-who-write-this-piece"                          ], 
				["Chromes-full-screen-mode-totally-rocks-with-Docs-I", "http://www.google.com/buzz/a/google.com/110898961250461403590/9nWDoyXyRp2/Chromes-full-screen-mode-totally-rocks-with-Docs-I"                          ], 
				["Just-got-notified-of-the-seventh-litigation-hold", "http://www.google.com/buzz/a/google.com/110898961250461403590/GXZBFB4k5ya/Just-got-notified-of-the-seventh-litigation-hold"                          ], 
				["Why-do-gmail-ads-think-I-need-this-particular", "http://www.google.com/buzz/a/google.com/110898961250461403590/TaWGY7D6pz2/Why-do-gmail-ads-think-I-need-this-particular"                          ], 
				["Inbox-0-No-bankruptcy-this-time-I-feel-OCD", "http://www.google.com/buzz/a/google.com/110898961250461403590/aGdwNREBugU/Inbox-0-No-bankruptcy-this-time-I-feel-OCD"                            ], 
				["Just-a-day-after-I-praise-the-precision-of-the", "http://www.google.com/buzz/a/google.com/110898961250461403590/eBnhUab9EK2/Just-a-day-after-I-praise-the-precision-of-the"                          ], 
				["Im-enjoying-my-inbox-much-less-now-that-its", "http://www.google.com/buzz/a/google.com/110898961250461403590/iELyjNoGVMJ/Im-enjoying-my-inbox-much-less-now-that-its"                           ], 
			];
			
			var blog:Array = [
				
				['Inspiration vs Perspiration','http://cakewrecks.blogspot.com/2008/07/inspiration-vs-perspiration.html'],
				['Naked Mohawk-Baby Carrot Jockeys','http://cakewrecks.blogspot.com/2008/06/naked-mohawk-baby-carrot-jockeys.html'],
				['I Want Sprinkles','http://cakewrecks.blogspot.com/2008/10/sorry-you-cant-have-any.html'],
				['Dial-A-Wreck','http://cakewrecks.blogspot.com/2008/08/dial-wreck.html'],
				['Sexual Harassment Cake','http://cakewrecks.blogspot.com/2008/08/this-calls-for-celebration.html'],
				['Going to the Dogs','http://cakewrecks.blogspot.com/2008/09/going-to-dogs.html'],
				['Creepy Baby Cake','http://cakewrecks.blogspot.com/2008/07/creepiness-continues.html'],
				['The Fireman Cake','http://cakewrecks.blogspot.com/2008/05/this-made-me-laugh-til-i-cried.html'],
				['The First Censored Cake Wreck','http://cakewrecks.blogspot.com/2008/07/first-censored-cake-wreck.html'],
				['The Cake That Started It All','http://cakewrecks.blogspot.com/2008/05/cake-that-started-it-all.html'],
				['Gee, thanks, \'kids\'.','http://cakewrecks.blogspot.com/2008/05/gee-thanks-kids.html'],
				['When Brides Have No Budget (Or Taste)','http://cakewrecks.blogspot.com/2008/05/when-brides-have-no-budget-or-taste.html'],
				['The Story of Amber','http://cakewrecks.blogspot.com/2009/04/apostrophe-is-silent.html'],
				['Happy Falker Satherhood! ','http://cakewrecks.blogspot.com/2009/05/happy-falker-satherhood.html'],
				['The Oh-So-Gross Foot Cakes','http://cakewrecks.blogspot.com/2009/02/thisll-cure-that-freaky-fetish.html'],
				['UK Logo not OK','http://cakewrecks.blogspot.com/2009/03/twins.html'],
				['The Holland Belly Cake','http://cakewrecks.blogspot.com/2009/02/hey-everybody-thish-cake-ish-from.html'],
				['Come On, Barbie, Let\'s Go Party','http://cakewrecks.blogspot.com/2009/02/come-on-barbie-lets-go-party.html'],
				['The Flash Drive','http://cakewrecks.blogspot.com/2009/01/problem-with-phone-orders.html'],
				['\'Hey Bebeh\' (aka the Macho Men)','http://cakewrecks.blogspot.com/2009/01/hey-bebeh.html?commentPage=3'],
				['The Most Wonderful Time of the Year','http://cakewrecks.blogspot.com/2008/12/most-wonderful-time-of-year.html'],
				['When Gangsters Go \'PC\'','http://cakewrecks.blogspot.com/2008/12/when-gangsters-go-pc.html'],
				['Seasonal Non Sequiturs','http://cakewrecks.blogspot.com/2008/12/seasonal-non-sequiturs.html'],
				['The Great Cupcake Cake Debate', "http://cakewrecks.blogspot.com/2008/09/cupcake-cakes-always-wrecktastic-always.html?commentPage=2"],
				
					['Wrecks Without Question','http://cakewrecks.blogspot.com/2010/07/wrecks-without-question.html'],
					['The Amazing Adventures of Spiderman Head','http://cakewrecks.blogspot.com/2010/07/amazing-adventures-of-spiderman-head.html'],
					['Phonics Phailures','http://cakewrecks.blogspot.com/2010/07/phonics-phailures.html'],
					['The Men of Marvel','http://cakewrecks.blogspot.com/2010/07/men-of-marvel.html'],
					['Sunday Sweets: Threadcakes 2010','http://cakewrecks.blogspot.com/2010/07/sunday-sweets-threadcakes-2010.html'],
					['Who You Callin&#39; &#39;Pro&#39;?','http://cakewrecks.blogspot.com/2010/07/who-you-callin-pro.html'],
					['Frosting 101','http://cakewrecks.blogspot.com/2010/07/frosting-101.html'],
					['A Picture Is Worth...Well, This Many Words','http://cakewrecks.blogspot.com/2010/07/picture-is-worthwell-this-many-words.html'],
					['Sam&#39;s Club','http://cakewrecks.blogspot.com/2010/07/sams-club.html'],
					['What&#39;s Our Name? And What Are We Celebrating?','http://cakewrecks.blogspot.com/2010/07/whats-our-name-and-what-are-we.html'],
					['Sunday Sweets: Miss Independent','http://cakewrecks.blogspot.com/2010/07/sunday-sweets-miss-independent.html'],
					['May the 4th Be With You...','http://cakewrecks.blogspot.com/2010/07/may-4th-be-with-you.html'],
					['National Canada Day','http://cakewrecks.blogspot.com/2010/07/national-canada-day.html'],
					['Instant Pride','http://cakewrecks.blogspot.com/2010/07/instant-pride.html'],
					['Tour Roundup: San Diego','http://cakewrecks.blogspot.com/2010/06/tour-roundup-san-diego.html'],
					['What&#39;s THAT Supposed to Mean?','http://cakewrecks.blogspot.com/2010/06/whats-that-supposed-to-mean.html'],
					['Tour Roundup: Pasadena, CA','http://cakewrecks.blogspot.com/2010/06/tour-roundup-pasadena-ca.html'],
					['Royal Wrecks','http://cakewrecks.blogspot.com/2010/06/royal-wrecks.html'],
					['Operation Cake Evasion','http://cakewrecks.blogspot.com/2010/06/operation-cake-evasion.html'],
					['Sunday Sweets: Tour Edition','http://cakewrecks.blogspot.com/2010/06/sunday-sweets-tour-edition.html'],
					['Sweet N&#39; Salty','http://cakewrecks.blogspot.com/2010/06/sweet-n-salty.html'],
					['News Bites!','http://cakewrecks.blogspot.com/2010/06/news-bites_25.html'],
					['Close Enough','http://cakewrecks.blogspot.com/2010/06/close-enough.html'],
					['Tempe Treats','http://cakewrecks.blogspot.com/2010/06/tempe-treats.html'],
					['Crazy Genes','http://cakewrecks.blogspot.com/2010/06/crazy-genes.html'],
					['Father Figures?','http://cakewrecks.blogspot.com/2010/06/father-figures.html'],
					['How We Made Dad Feel Special. Or Just Uncomfortabl...','http://cakewrecks.blogspot.com/2010/06/how-we-made-dad-feel-special-or-just.html'],
					['Sweets For Dad','http://cakewrecks.blogspot.com/2010/06/sweets-for-dad.html'],
					['Important Update for San Diego/La Jolla','http://cakewrecks.blogspot.com/2010/06/important-update-for-san-diegola-jolla.html'],
					['Wreckies Of The Month','http://cakewrecks.blogspot.com/2010/06/wreckies-of-month.html'],
					['Let&#39;s Just Stick with &quot;Happy Falker Satherhood&quot;','http://cakewrecks.blogspot.com/2010/06/lets-just-stick-with-happy-falker.html'],
					['Flip Flops (Hey, Look, a Built-In Pun!)','http://cakewrecks.blogspot.com/2010/06/flip-flops-hey-look-built-in-pun.html'],
					['Our World Cup Overfloweth','http://cakewrecks.blogspot.com/2010/06/our-world-cup-overfloweth.html'],
					['Audio Comprehension in Jeopardy','http://cakewrecks.blogspot.com/2010/06/audio-comprehension-in-jeopardy.html'],
					['Just Beachy','http://cakewrecks.blogspot.com/2010/06/just-beachy.html'],
					['Sunday Sweets: Inspiration','http://cakewrecks.blogspot.com/2010/06/sunday-sweets-inspiration.html'],
					['We Learned Good!','http://cakewrecks.blogspot.com/2010/06/we-learned-good.html'],
					['Rear View Wreckage','http://cakewrecks.blogspot.com/2010/06/rear-view-wreckage.html'],
					['Reminders, Updates, &amp; FAQs','http://cakewrecks.blogspot.com/2010/06/reminders-updates-faqs.html'],
					['Sullen Sully','http://cakewrecks.blogspot.com/2010/06/sullen-sully.html'],
					['News Bites','http://cakewrecks.blogspot.com/2010/06/news-bites.html'],
					['If the Shoe Fits...','http://cakewrecks.blogspot.com/2010/06/if-shoe-fits.html'],
					['Sunday Sweets: Gamer Goodness','http://cakewrecks.blogspot.com/2010/06/sunday-sweets-gamer-goodness.html'],
					['My Thai Font','http://cakewrecks.blogspot.com/2010/06/my-thai-font.html'],
					['Here, There, and Everywhere','http://cakewrecks.blogspot.com/2010/06/here-there-and-everywhere.html'],
					['Wreckage in its Proper Form','http://cakewrecks.blogspot.com/2010/06/wreckage-in-its-proper-form.html'],
					['Nothing To See Here','http://cakewrecks.blogspot.com/2010/06/nothing-to-see-here.html'],
					['We...... Need Your Help!','http://cakewrecks.blogspot.com/2010/06/we-need-your-help.html'],
					['Evolution of a Wreck','http://cakewrecks.blogspot.com/2010/06/evolution-of-wreck.html'],
					['The Bakings of a Memorable Memorial Day','http://cakewrecks.blogspot.com/2010/05/bakings-of-memorable-memorial-day.html'],
						
				];
				
				var activity:Array = [];
			var i:int;
			for (i = 0; i < youtube.length; ++i) {
				activity.push({'type': 'Youtube', 'url': youtube[i][1], 'anchor': youtube[i][0]});
			}
			for (i = 0; i < buzz.length; ++i) {
				activity.push({'type': 'Buzz', 'url': buzz[i][1], 'anchor': buzz[i][0]});
			}
			for (i = 0; i < blog.length; ++i) {
				activity.push({'type': 'Blog', 'url': blog[i][1], 'anchor': blog[i][0]});
			}
			
			var retv:Array = []
			var n:int = int(Math.random() * 8 + 2);
			for (i = 0; i < n; ++i) {
				var k:int = int(Math.random() * activity.length);
				retv.push(activity[k]);
			}
			return retv;
		}
		
		public function onKeyUp(event:KeyboardEvent):void {
			trace('onKeyUp >' + event.keyCode, Keyboard.ESCAPE);
			trace('onClose >' + event.keyCode, Keyboard.ESCAPE);
			if (event.keyCode == Keyboard.ESCAPE) {
				activityDetail.close();
			}
		}
		
		public function update(items:Array):void {
			if (items.length <= 1) return;
			var name:Array = [];
			
			for each (var node:NodeSprite in items) {
				name.push(node.data);
			}	
			trace(' >' + name.length);
			var active:Array = name.slice(0, 10);
			var focused:Array = name.reverse().slice(0, 10);
			topActiveList.setListData(active);
			topFocusedList.setListData(focused);
			
			var buzz:Array = [
				{'picture': 'resources/assets/Jason.png', 'url': 'http://www.google.com/buzz/a/google.com/jungao/AdQqHbr8t8N/Make-sure-you-look-like-your-badge', 'snippet': 'Make sure you look like your badge', 'anchor': 'like badge'},
				{'picture': 'resources/assets/Jason.png', 'url': 'http://www.google.com/buzz/a/google.com/jungao/cxw3CfAmq3S/%E4%BA%AC%E4%B8%9C%E5%95%86%E5%9F%8E%E4%BB%8A%E8%B5%B7%E4%B8%8D%E9%99%90%E9%87%91%E9%A2%9D-%E4%B8%8D%E5%88%86%E4%BC%9A', 'snippet': '赫然发现可以retweet了，试试。', 'anchor': 'retweet'},
			];
			topBuzzList.setListData(buzz);
			
			var video:Array = [
				{'picture': 'resources/assets/Kokey.png', 'url': 'http://www.youtube.com/watch?v=V-bjOJzB7LY', 'snippet': 'Adora Svitak: What adults can learn from kids', 'anchor': 'Childish'},
				{'picture': 'resources/assets/Mike.png', 'url': 'http://www.youtube.com/watch?v=iG9CE55wbtY', 'snippet': 'Sir Ken Robinson: Do schools kill creativity?', 'anchor': 'Creativity'}
			];
			topVideoList.setListData(video);
		}
	}
}
